﻿@{
    Layout = "_UserSpaceSettings";
    ViewData["UserSettingsMenu"] = UserSettingsMenu.UserAlbums;
    var list = ViewData["UserAlbumrs"] as IEnumerable<UserAlbumr>;
}
@section Aside
{
    @Html.Partial("_UserSettingsMenus", ViewData)
}
@model  UserAlbumr

<div class="tn-box tn-widget tn-widget-content tn-corner-all tnc-form-info">
    <div class="tn-box-content tn-widget-content tn-corner-all">
@using (Html.BeginForm("UserAlbums", "UserSpaceSettings", FormMethod.Post, new { id = "form-News-edit" }))
{
    @Html.HiddenFor(n => n.UserId)
        <div class="tnc-eidtavatar">
            <div class="tn-main-heading tn-border-gray tn-border-bottom">
                <h2>上传图片</h2>
            </div>
            @Html.SetTitleImageFor(n => n.FeaturedImageAttachmentId, TenantTypeIds.Instance().UserAlbumr(), Model.Id, 5)
            @Html.Button("保存", ButtonTypes.Submit, HighlightStyles.Primary, ButtonSizes.Large, null, TextIconLayout.IconText, null, new { id = "submit-publish" })
        </div>
}
        
        <div>
            <ul>
                @if (list!=null&& list.Count() > 0 && list.First().Id > 0)
                {
                    foreach (var temp in list)
                    { 
                <li>
                    <img src="@temp.FeaturedImage" style=" border:0" />
                </li>
                }
                }
               else
                { 
                   <li>暂无图片</li>
                }
            </ul>

        </div>
    </div>
</div>
